home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_200 / 205_01 / fkey.c < prev    next >
Text File  |  1980-01-01  |  384b  |  26 lines

  1. static char *progid = { "fkey.c by Michael Yokoyama"};
  2.  
  3. #include <stdio.h>
  4.  
  5. main()
  6. {
  7.     fkey( 4,"cls");
  8.     fkey( 5,"");
  9.     fkey( 7,"");
  10.     fkey( 8,"");
  11.     fkey( 9,"ls");
  12.     fkey(10,"");
  13. }
  14.  
  15. fkey(key, cmd)
  16. int key;
  17. char cmd[];
  18. {
  19.     if(key < 1 || key > 10 )
  20.         return;
  21.     printf("%c[0;",27);
  22.     printf("%d;",key+58);    
  23.     printf("%c%s%c",34,cmd,34);
  24.     printf(";13p");
  25. }
  26.